package colleaction.sort;

/**
 * 
 * @author Jian
 * 
 */
public class Item {// implements Comparable<Item> {

	private int itemId;
	private int count;

	public Item(int itemId, int count) {
		super();
		this.itemId = itemId;
		this.count = count;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getItemId() {
		return itemId;
	}

	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	// @Override
	// public int compareTo(Item o) {
	// if (this.itemId != o.getItemId()) {
	// return this.itemId - o.getItemId();
	// } else {
	// return this.count - o.getCount();
	// }
	// }

	@Override
	public String toString() {
		return "Item [" + itemId + "][" + count + "]";
	}

}
